package com.qo;

import lombok.Data;
import org.springframework.util.StringUtils;

@Data
public class QueryObject {
    private int currentPage = 1;
    private int pageSize = 5;

    public int getStart() {
        return (this.currentPage - 1) * this.pageSize;
    }

    /*public String getKeyword() {
        return StringUtils.hasLength(this.keyword) ? this.keyword : null;
    }*/

}
